//添加补贴
import {transfer} from "./axiosApi";

export function AddSubsidy(data) {
    return transfer({
        method: 'post',
        data,
        url: '/Subsidy/add',
    })
}

//修改补贴
export function UpdateSubsidy(data) {
    return transfer({
        method: 'post',
        data,
        url: '/Subsidy/update',
    })
}

//删除补贴
export function deleteSubsidy(id) {
    return transfer({
        params: {id},
        url: '/Subsidy/del'
    })
}

//查询
export function QuerySubsidy(data) {
    return transfer({
        method: 'post',
        data,
        //condition条件
        url: '/Subsidy/page',
    })
}

export function QuerySubsidyStatistics(params) {
    return transfer({
        url: '/Subsidy/statistics',
        params
    })
}